package com.hyt.it.ogt.kq.common.gov.config.canal;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;


/**
 * <p>
 *  配置信息管理--修改配置文件，不用重启即生效。
 * </p>
 *
 * @author Chengxh
 * @since 2021-08-14
 */

@Getter
@Component
@RefreshScope
public class CanalConfig {


    @Value("${canal.canalip}")
    private String canalip;
    
    @Value("${canal.canalport}")
    private Integer canalport;
    
    @Value("${canal.canaldestination}")
    private String canaldestination;
    
    @Value("${canal.canalsubscribereg}")
    private String canalsubscribe;
    
    @Value("${canal.canalackbatchsize:1000}")
    private Integer canalackbatchsize;
    
    @Value("${canal.sleepSeconds:3}")
    private Long sleepSeconds;

    @Value("${canal.isEnable:true}")
    private Boolean isEnable;
}
